BrowserView

fun <Error class: unknown class>.BrowserView(browser: Browser, modifier: <Error class: unknown class> = Modifier)
fun <Error class: unknown class>.BrowserView(browser: Browser, modifier: <Error class: unknown class> = Modifier)

A component that displays the content of the given browser.

This component needs a WindowScope to access the native AWT window. This access enables the BrowserView to utilize native AWT capabilities, such as handling specific window events, accessing window properties, and perform operations beyond the Compose features.

The passed modifier supports all the same options as the Box composable. You can use it to adjust properties like size, padding, alignment, and more.

Please note, as for now, the component supports only OFF_SCREEN rendering mode. Passing a browser instance with HARDWARE_ACCELERATED mode leads to a runtime exception. See also: Rendering modes.

Parameters

browser

The browser, the content of which to display.

modifier

The modifier to be applied to the layout.